<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Mở thẻ Visa Techcombank</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/form_new.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"> </script>

<link rel="stylesheet" type="text/css" href="scripts/facebox/src/facebox.css" />
<script language="javascript" src="scripts/facebox/src/facebox.js"></script>


</head>
<body>

<div id="page">

    <div class="layout-main-shortcuts">
    </div>

   
    <div class="main_page">    
        <a href="_intro_fastibank.php" class="view_detail view_1" rel="facebox" id="test"></a>
        <a href="_intro_visadebit.php" class="view_detail view_2" rel="facebox"></a>
        <a href="_intro_visacredit.php" class="view_detail view_3" rel="facebox"></a>
        
        <a href="_register_fastibank.php" class="register_now register_1" rel="facebox"></a>
        <a href="_register_visadebit.php?name=<?php echo urldecode($_GET['name']);?>&email=<?php echo strip_tags($_GET['email']); ?>&phone=<?php echo strip_tags($_GET['phone']); ?>" class="register_now register_2" rel="facebox"></a>
        <a href="_register_visacredit.php" class="register_now register_3" rel="facebox"></a>
        
        <a href="vip_membership_benefits.php" class="link_vip_bk vip_1" target="_blank"></a>
        <a href="vip_membership_benefits.php" class="link_vip_bk vip_2" target="_blank"></a>
        <a href="vip_membership_benefits.php" class="link_vip_bk vip_3" target="_blank"></a>

    </div>
    <?php 
    	if(isset($_GET['name'])){
			setcookie ("name", urldecode($_GET['name']), time() + 3600);
		}
		if(isset($_GET['phone'])){
			setcookie ("phone", $_GET['phone'], time() + 3600);
		}
		if(isset($_GET['email'])){
			setcookie ("email", $_GET['email'], time() + 3600);
		}
    ?> 
    
    
    <?php 
    

    
    $popup=0;
    if(isset($_GET['popup'])){
		switch ($_GET['popup']) {
		    case 'fastibank':
		        $popup='fastibank';
		        break;
		    case 'visadebit':
		        $popup='visadebit';
		        break;
		    case 'visacredit':
		        $popup='visacredit';
		        break;
		}
    };?>
    
    <input type="hidden" id="input_popup" value="<?php echo $popup; ?>">
    

    
    <div class="footer">
        <div class="footer_infomation">
            <b>Ngân hàng thương mại cổ phần Kỹ thương Việt Nam</b>
            <br>
            <br>
            <b>Trụ sở chính :</b>: 72 Bà Triệu, Hoàn Kiếm, Hà Nội.
            <br>
            <b>VP TP.HCM:  </b> 06 Nguyễn Thị Minh Khai, Quận 1, TP HCM.
            <br>
            <b>Website: </b><a href="https://www.techcombank.com.vn/">www.techcombank.com.vn</a>
        </div>
        
        <div class="footer_infomation">
            <b>Công ty cổ phần thương mại điện tử Bảo Kim</b>
            <br>
            <br>
            <b>Bảo Kim</b> - dịch vụ thanh toán trực tuyến thúc đẩy thương mại điện tử Việt nam.
            <br>
            <b>Trụ sở chính :</b>  Tầng 7, 51 Lê Đại Hành, Hai Bà Trưng, Hà Nội.
            <br>
            <b>VP TP.HCM:  </b> Lầu 10 tòa nhà MeKong Tower,235 Cộng Hòa F.13,Q.Tân Bình.
            <br>
            <b>Website: </b><a href="https://www.baokim.vn/">www.baokim.vn</a>
        </div>
    </div>
</div>


  
</body>
</html>



<script >

    $(document).ready(function() {
        var popup=$("#input_popup").val();
        
        if(popup=='fastibank'){
            jQuery.facebox({ ajax: '_register_fastibank.php' });
        }
        if(popup=='visadebit'){
            jQuery.facebox({ ajax: '_register_visadebit.php' });
        }
        if(popup=='visacredit'){
            jQuery.facebox({ ajax: '_register_visacredit.php' });
        }
        
    });
    
    $(window).scroll(function() {
        var facebox=$("#facebox").css("top");
        var win=$(window).scrollTop();
        
        var n=facebox.indexOf("px");
        facebox=facebox.substring(0,n);
        
        facebox=parseFloat(facebox);
        win=parseFloat(win);
        
        if(facebox>win){
            var tmp=20 + win + (facebox-win)/2;
            $("#facebox").css('top',tmp+'px')
        }
       });
       
    $('a[rel*=facebox]').facebox();
    

        
    function numbersonly(myfield, e, dec)
    {
        var key;
        var keychar;

        if (window.event)
            key = window.event.keyCode;
        else if (e)
            key = e.which;
        else
            return true;
        keychar = String.fromCharCode(key);

        //control keys
        if((key==null) || (key==0) || (key==8) ||
            (key==9) || (key==13) || (key==27) )
            return true;

        // numbers
        else
         if ((("0123456789").indexOf(keychar) > -1))
            return true;

        // decimal point jump
        else if (dec && (keychar == "."))
            {
            myfield.form.elements[dec].focus();
            return false;
            }
        else
            return false;
    }

</script>